package org.cloud.consumer.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

/**
 * @author hjx
 * @title: CoreConfig
 * @description: TODO
 * @date 2021/10/28
 */
@Configuration
public class ConsumerConfig {
    @Bean
    @ConfigurationProperties("spring.datasource.druid")
    public DataSource druid() {
        return new DruidDataSource();
    }


}
